# include<bits/stdc++.h>
using namespace std;
int main()
{
int x;
cin>>x;
cout<<'\n';
if(x)
  cout<<0;
else
  cout<<1;
  getchar();
   getchar();
  return 0;
 
}
